var Congratulation = function()
{
	this.count = 0;
	
	this.img = new Image();
	this.img.src = "Images/TelaVitoria_Sala.png";
	
	this.img_av = new Array();
	
	this.img_av[0] = new Image();
	this.img_av[0].src = "Images/Avance_1.png";
	
	this.img_av[1] = new Image();
	this.img_av[1].src = "Images/Avance_2.png";
	
	this.fogo = new Array();
		
	this.fogo[0] = new Image();
	this.fogo[0].src = "Images/Fogo_Lareira0001.png";
	
	this.fogo[1] = new Image();
	this.fogo[1].src = "Images/Fogo_Lareira0002.png";
	
	this.fogo[2] = new Image();
	this.fogo[2].src = "Images/Fogo_Lareira0003.png";
	
	this.fogo[3] = new Image();
	this.fogo[3].src = "Images/Fogo_Lareira0004.png";
	
	this.fogo[4] = new Image();
	this.fogo[4].src = "Images/Fogo_Lareira0005.png";
	
	this.fogo[5] = new Image();
	this.fogo[5].src = "Images/Fogo_Lareira0006.png";
	
	this.fogo[6] = new Image();
	this.fogo[6].src = "Images/Fogo_Lareira0007.png";
	
	this.fogo[7] = new Image();
	this.fogo[7].src = "Images/Fogo_Lareira0008.png";

	this.fogo[8] = new Image();
	this.fogo[8].src = "Images/Fogo_Lareira0009.png";
	
	this.fogo[9] = new Image();
	this.fogo[9].src = "Images/Fogo_Lareira0010.png";
	
	this.fogo[10] = new Image();
	this.fogo[10].src = "Images/Fogo_Lareira0011.png";
	
	this.fogo[11] = new Image();
	this.fogo[11].src = "Images/Fogo_Lareira0012.png";
	
	this.timer = 0;
	this.fire = 0;

	this.update = function()
	{
		windows.num[0] = 0;
		windows.num[1] = 0;
		windows.num[2] = 0;
		windows.num[3] = 0;
		windows.num[4] = 0;
		windows.num[5] = 0;
		
		player.go.x = 385;
		player.go.y = 0;
		
		player.KeyLeft = false;
		player.KeyRight = false;
		player.KeyUp = false;
		player.KeyDown = false;
		player.Space = false;
		
		this.timer += 1;
		
		if(this.timer % 3 == 0)
		{
			this.fire++;
		}
		
		if(this.fire >= 11)
		{
			this.fire = 0;
		}
	}
	
	this.draw = function()
	{
		graphics.DrawImage(this.img, 0, 0);
		graphics.DrawImage(this.img_av[sceneManager.av_c], 700, 544);
		graphics.DrawImage(this.fogo[this.fire], 380, 222);
	}
}

var congratulation = new Congratulation();